<?php 

include './Core/function.php';




// echo "你要删除的是";
// var_dump($id);

if ($_GET) {
	$id = $_GET['id'];

	$db=include './db.php';

	unset($db[$id]);

	$str=var_export($db,true);

	// var_dump($str);exit;

	$str="<?php 
	      return " .$str."
	      ?>";


	file_put_contents('./db.php', $str);

	delsuccess('index.php','删除成功');
}else{
	error('index.php','删除失败');
}










 ?>